<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td>
			<div class="blue-text16" style="margin: 0px 0px 0px 0px">
				Offer history
			</div>
			<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
			<div style="margin: 0px 0px 12px 0px">
			<table width="100%" cellpadding="0" cellspacing="0" class="filepc">
				<tbody>
					<tr>
						<td align="left" class="common-bold-text">
							<s:property value="item.title" />
						</td>
						<td align="right" class="common-bold-text">
							Item Nr.: <s:property value="item.itemId" />
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<div align="center">
								<table style="font-weight: bold;" width="100%" bgcolor="#ececec" border="0">
									<tbody>
										<tr>
											<td>
												<s:iterator value="categoriesName" var="categories" status="status">
													<a href="" class="common-link"><s:property value="%{categoriesName[#status.index]}" /></a>
													<s:if test="#status.last == false"><s:property value="#attr.categoryOptions.menuLineSeparator" escape="false" /></s:if>
												</s:iterator>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
							<!-------------------------------------------------------->
							<div align="center">
								<center>
									<table width="100%" border="0" cellpadding="0" cellspacing="0">
										<tbody>
											<tr>
												<td width="100%" align="center">

													<table width="100%" border="0" bordercolor="#e9f3bc"
														cellpadding="3" cellspacing="0">
														<tbody>
															<tr>
																<td width="100%" align="center" class="search-text">
																	<s:property value="item.title" />
																</td>
															</tr>
														</tbody>
													</table>
													<table width="100%" border="0" cellpadding="1" cellspacing="0">
														<tbody>
															<tr>
																<td width="100%" align="center" class="search-text">
																	<b>Item Nr.</b><s:property value="item.itemId" />
																	<!--Featured_Icon-->
																</td>
															</tr>
														</tbody>
													</table>
												<display:table name="itemOffersList" cellpadding="0" size="2" style="width: 100%;" cellspacing="1" requestURI="" id="row" class="common-text">
													<display:column class="grid-bg common-text" title="Nr." value="${row_rowNum}" />
													<display:column class="grid-bg common-text" title="Title" property="items.title" />
													<display:column class="grid-bg common-text" title="User ID" property="user.userId" />
													<display:column class="grid-bg common-text" title="Offer amount" property="price" />
													<display:column class="grid-bg common-text" title="Offer quantity" property="quantity" />
													<display:column class="grid-bg common-text" title="Item condition" property="itemCondition" />
													<display:column class="grid-bg common-text" title="Bid date" property="time" />
												</display:table>
												</td>
											</tr>
										</tbody>
									</table>
									<table width="100%" border="0" bordercolor="#e9f3bc"
										cellpadding="1" cellspacing="0">
										<tbody>
											<tr bgcolor="#caef92">
												<td width="100%" align="center" bgcolor="#e9f3bc">
													<font size="4" color="#000000" face="Tahoma, Arial, Times">Offer detail</font>
												</td>
											</tr>
										</tbody>
									</table>
								</center>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
			</div>
		</td>
	</tr>
</table>